#!/bin/bash

echo "Dumping"
cd ../yaes
python manage.py dumpdata -n --settings=$1 > ../tools/source.json

echo "Clearing"
cd ../tools
python mover.py
mv destination.json initial_data.json
rm source.json

